package com.zr.common.core.domain.entity;

import com.zr.common.annotation.Excel;
import com.zr.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 组织对象 sys_organization
 * 
 * @author why
 * @date 2022-10-24
 */
public class SysOrganization extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 组织名称 */
    @Excel(name = "组织名称")
    private String name;

    /** 区域编码 */
    @Excel(name = "区域编码")
    private Long addressCode;

    /** 组织地址 */
    @Excel(name = "组织地址")
    private String address;

    /** 管理员 */
    private String administratorId;

    /** 创建人id */
    @Excel(name = "创建人id")
    private String createId;

    /** 修改人id */
    @Excel(name = "修改人id")
    private String updateId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAddressCode(Long addressCode) 
    {
        this.addressCode = addressCode;
    }

    public Long getAddressCode() 
    {
        return addressCode;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setAdministratorId(String administratorId) 
    {
        this.administratorId = administratorId;
    }

    public String getAdministratorId() 
    {
        return administratorId;
    }
    public void setCreateId(String createId) 
    {
        this.createId = createId;
    }

    public String getCreateId() 
    {
        return createId;
    }
    public void setUpdateId(String updateId) 
    {
        this.updateId = updateId;
    }

    public String getUpdateId() 
    {
        return updateId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("addressCode", getAddressCode())
            .append("address", getAddress())
            .append("administratorId", getAdministratorId())
            .append("parentId", getParentId())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
